// 水稳
let stabilityData = [
  {
    title: "水(kg)",
    dataIndex: "water",
  },
  {
    title: "集料1(kg)",
    dataIndex: "aggregate1",
  },
  {
    title: "集料2(kg)",
    dataIndex: "aggregate2",
  },
  {
    title: "集料3(kg)",
    dataIndex: "aggregate3",
  },
  {
    title: "集料4(kg)",
    dataIndex: "aggregate4",
  },
  {
    title: "集料5(kg)",
    dataIndex: "aggregate5",
  },
  {
    title: "集料6(kg)",
    dataIndex: "aggregate6",
  },
  {
    title: "水泥(kg)",
    dataIndex: "cement",
  },
];
let stabilityField = {
  actual: "",
  theory: "",
  actualProportion: "",
  theoryProportion: "",
  isStandard: false,
};

// 水泥
let concreteData = [
  {
    name: "水",
    dataIndex: "water",
  },
  {
    dataIndex: "waterOther",
    name: "其他水",
  },
  {
    dataIndex: "fineAggregate1",
    name: "细集料1",
  },
  {
    dataIndex: "fineAggregate2",
    name: "细集料2",
  },
  {
    dataIndex: "coarseAggregate1",
    name: "粗集料1",
  },
  {
    dataIndex: "coarseAggregate2",
    name: "粗集料2",
  },
  {
    dataIndex: "coarseAggregate3",
    name: "粗集料3",
  },
  {
    dataIndex: "coarseAggregate4",
    name: "粗集料4",
  },
  {
    dataIndex: "cement",
    name: "水泥",
  },
  {
    dataIndex: "flyAsh",
    name: "粉煤灰",
  },
  {
    dataIndex: "mineralPowder",
    name: "矿粉",
  },
  {
    dataIndex: "admixture1",
    name: "外加剂1",
  },
  {
    dataIndex: "admixture2",
    name: "外加剂2",
  },
  {
    dataIndex: "waterCementRatio",
    name: "水胶比",
  },
  {
    dataIndex: "sandRatio",
    name: "砂率",
  },
];

let concreteField = {
  actual: "",
  theory: "",
  error: "",
  isStandard: false,
};

// 沥青
let asphaltData = [
  {
    title: "温度℃",
    dataIndex: "temperature",
  },
  {
    title: "油石比(%)",
    dataIndex: "oilStoneRatio",
  },
  {
    title: "沥青(kg)",
    dataIndex: "asphalt",
  },
  {
    title: "骨料1(kg)",
    dataIndex: "aggregate1",
  },
  {
    title: "骨料2(kg)",
    dataIndex: "aggregate2",
  },
  {
    title: "骨料3(kg)",
    dataIndex: "aggregate3",
  },
  {
    title: "骨料4(kg)",
    dataIndex: "aggregate4",
  },
  {
    title: "骨料5(kg)",
    dataIndex: "aggregate5",
  },
  {
    title: "骨料6(kg)",
    dataIndex: "aggregate6",
  },
  {
    title: "矿粉(kg)",
    dataIndex: "mineralPowder",
  },
  {
    title: "水泥(kg)",
    dataIndex: "cement",
  },
  {
    title: "再生料(kg)",
    dataIndex: "recycledMaterial",
  },
];

let asphaltField = {
  actual: "",
  percentage: "",
  mix: "",
  isStandard: false,
};
const generateFiled = (data, field) => {
  return data.map((val) => {
    return {
      ...val,
      ...field,
    };
  });
};

export let produceColumns = generateFiled(stabilityData, stabilityField);
export let concreteColumns = generateFiled(concreteData, concreteField);
export let asphaltColumns = generateFiled(asphaltData, asphaltField);
